package com.example.aop.bnapc;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

// 拦截器
public class LoggerMethodInterceptor implements MethodInterceptor {
	
	@Override
	public Object invoke(MethodInvocation invocation) throws Throwable {
		System.out.println("调用前，=======打印日志=========");
		Object object = invocation.proceed();
		System.out.println("调用后，=======打印日志=========");
		return object;
	}
}
